<?php

namespace App\Api\Eloquent;

/**
 * 用户信息表(前台)
 *
 * Class UserInfo
 * @package App\Admin\Eloquent
 */
class UserInfo extends Model
{
    protected $fillable = ['name', 'user_id','id_card','recommended', 'invite_code','invite_money','bank_code','bank_card_number','bank_card_id','org_code','dept_code','broker_code','activity_register','is_set_pay_password','set_pay_password_time','second_broker_code'];

    protected $table = 'user_info';

    protected $primaryKey = 'user_id';

    /**
     * 获取关联的用户
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function user()
    {
        return $this->belongsTo('App\Api\Eloquent\User');
    }
}